import {createRouter,createWebHistory,RouteRecordRaw} from 'vue-router'
//定义路由规则
const routes:Array<RouteRecordRaw> =[
    {
        path:"/",
        name:"HellowWorld",
        component:()=>import('../components/HelloWorld.vue')
    },
    {
        path:"/Login",
        name:"Login",
        component:()=>import('../view/User/Login.vue')
    },
    {
        path:"/UserLoginInfo",
        name:"UserLoginInfo",
        component:()=>import('../view/User/ShowUserLoginInfo.vue')
    }
]

//创建路由实例
const router = createRouter({
    history:createWebHistory(),
    routes
})

//导出路由
export default router